package pers.jg.rrsserver.entity

import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table
import java.sql.Timestamp
import java.time.Instant

@Entity
@Table(name = "goods_order")
open class GoodsOrder {
    @Id
    @Column(name = "id", nullable = false, length = 45)
    open var id: String? = null

    @Column(name = "goods_id", length = 45)
    open var goodsId: String? = null

    @Column(name = "buyer_id", length = 45)
    open var buyerId: Int? = null

    @Column(name = "tel", length = 45)
    open var tel: String? = null

    @Column(name = "province", length = 45)
    open var province: String? = null

    @Column(name = "city", length = 45)
    open var city: String? = null

    @Column(name = "district_and_county", length = 45)
    open var districtAndCounty: String? = null

    @Column(name = "address", length = 45)
    open var address: String? = null

    @Column(name = "receiver", length = 45)
    open var receiver: String? = null

    @Column(name = "buy_time")
    open var buyTime: Timestamp? = null

    @Column(name = "shipping_time")
    open var shippingTime: Timestamp? = null

    @Column(name = "finish_time")
    open var finishTime: Timestamp? = null

    @Column(name = "status", length = 45)
    open var status: Int? = null

    @Column(name = "pay_method", length = 45)
    open var payMethod: String? = null

    @Column(name = "buy_num")
    open var buyNum: Int? = null

    @Column(name = "buy_price_cent")
    open var buyPriceCent: Int? = null

    @Column(name = "express_num", length = 45)
    open var expressNum: String? = null
}